﻿<%@ Page AutoEventWireup="true" CodeBehind="Admin_BookPub.aspx.cs" Inherits="V5_EShop.Admin.Book.Admin_BookPub"
    Language="C#" MasterPageFile="~/Includes/AdminMaster.Master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="title">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="content">
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tablelist">
        <tr>
            <td class="headertext">
                位置导航：<a class="list_link" href="<%=this.ResolveUrl("~/") %>Admin/Admin_Index_Main.aspx"
                    target="main">首页</a> >> 出版社管理
            </td>
        </tr>
        <tr>
            <td>
                <a href="?">管理首页</a> | <a href="?Action=edit">添加出版社</a>
            </td>
        </tr>
    </table>
    <asp:MultiView ID="MultiViewList" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                OnRowCommand="gvList_RowCommand" CssClass="tablelist">
                <HeaderStyle CssClass="headertext" />
                <Columns>
                    <asp:TemplateField HeaderText="选择" HeaderStyle-CssClass="headertext">
                        <HeaderTemplate>
                            <input id="Checkbox1" onclick="selectedAll(this);" type="checkbox" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkitem" runat="server" CssClass="checkitem" />
                            <asp:HiddenField ID="hfID" runat="server" Value='<%#Eval("ID") %>' />
                        </ItemTemplate>
                        <HeaderStyle CssClass="headertext" />
                        <ItemStyle Width="30px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="PubCode" HeaderText="出版社编号"></asp:BoundField>
                    <asp:BoundField DataField="PubName" HeaderText="出版社名称"></asp:BoundField>
                    <asp:BoundField DataField="PubTel" HeaderText="出版社电话"></asp:BoundField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" CommandArgument='<%#Bind("ID")%>' CommandName="go"
                                runat="server">修改</asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" CommandArgument='<%#Bind("ID")%>' CommandName="del"
                                runat="server" OnClientClick="return confirm('你确定要删除吗?');">删除</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="200px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <table border="0" align="center" cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                            FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                            OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="10"
                            PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                            TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" AlwaysShow="True" Width="100%">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tablelist">
                <tr class="headertext">
                    <td colspan="2">
                        <asp:Label ID="lblTitle" runat="server" Text="添加"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        出版社编号:
                    </td>
                    <td>
                        <asp:TextBox ID="txtPubCode" runat="server" Width="350px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        出版社名称:
                    </td>
                    <td>
                        <asp:TextBox ID="txtPubName" runat="server" Width="350px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        出版社电话:
                    </td>
                    <td>
                        <asp:TextBox ID="txtPubTel" runat="server" Width="350px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        字母编号:
                    </td>
                    <td>
                        <asp:TextBox ID="txtCharIndex" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        备注:
                    </td>
                    <td>
                        <asp:TextBox ID="txtNote" runat="server" TextMode="MultiLine" Width="300px" Height="90px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:HiddenField ID="hfID" runat="server" Value="0" />
                        <asp:Button ID="btnSave" runat="server" Text="添加保存" OnClick="btnSave_Click" CssClass="ds-btn ds-btn-ok" />
                        <input id="Reset1" type="reset" value="重新设置" class="ds-btn" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
